<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
    <title>Title</title>
</head>
<body>

<div id="i1"></div>
<input type="button" value="删除" onclick="deleteEle();">

<script>
    function deleteEle() {
        document.getElementById('i1').innerText='已删除';
        setTimeout(function () {
            document.getElementById('i1').innerText = '';
        },3000);
    }
</script>

</body>
</html>